How to work with variable with different datatype in Typescript

join shbcf.ru